.class Lcom/nemustech/regina/ReginaUpdater$2$1;
.super Ljava/lang/Object;
.source "ReginaUpdater.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/regina/ReginaUpdater$2;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/nemustech/regina/ReginaUpdater$2;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/ReginaUpdater$2;)V
    .locals 0
    .parameter

    .prologue
    .line 109
    iput-object p1, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 5
    .parameter "arg0"
    .parameter "arg1"

    .prologue
    const/4 v4, 0x0

    const/4 v3, -0x1

    .line 113
    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    iget v2, v2, Lcom/nemustech/regina/ReginaUpdater;->mResult:I

    if-eq v2, v3, :cond_0

    .line 114
    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    iput v3, v2, Lcom/nemustech/regina/ReginaUpdater;->mResult:I

    .line 115
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 116
    .local v1, updateList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/XMLRecord;>;"
    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-static {v2}, Lcom/nemustech/regina/ReginaUpdater;->access$100(Lcom/nemustech/regina/ReginaUpdater;)Lcom/nemustech/regina/XMLRecord;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 118
    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-virtual {v2}, Lcom/nemustech/regina/ReginaUpdater;->isMediaMounted()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 119
    new-instance v0, Lcom/nemustech/regina/UpdaterTask;

    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    invoke-direct {v0, v1, v2}, Lcom/nemustech/regina/UpdaterTask;-><init>(Ljava/util/ArrayList;Landroid/app/Activity;)V

    .line 120
    .local v0, task:Lcom/nemustech/regina/UpdaterTask;
    new-array v2, v4, [Ljava/lang/Void;

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/UpdaterTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 126
    .end local v0           #task:Lcom/nemustech/regina/UpdaterTask;
    .end local v1           #updateList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/XMLRecord;>;"
    :cond_0
    :goto_0
    return-void

    .line 122
    .restart local v1       #updateList:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/nemustech/regina/XMLRecord;>;"
    :cond_1
    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    iput v4, v2, Lcom/nemustech/regina/ReginaUpdater;->mResult:I

    .line 123
    iget-object v2, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v2, v2, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    iget-object v3, p0, Lcom/nemustech/regina/ReginaUpdater$2$1;->this$1:Lcom/nemustech/regina/ReginaUpdater$2;

    iget-object v3, v3, Lcom/nemustech/regina/ReginaUpdater$2;->this$0:Lcom/nemustech/regina/ReginaUpdater;

    const v4, 0x7f070074

    invoke-virtual {v3, v4}, Lcom/nemustech/regina/ReginaUpdater;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/nemustech/regina/RUtils;->showToast(Landroid/content/Context;Ljava/lang/String;)Landroid/widget/Toast;

    goto :goto_0
.end method
